cmake_minimum_required(VERSION 3.25)
project(network C)

set(CMAKE_C_STANDARD 11)
if (WIN32)
    link_libraries(ws2_32)
endif ()
add_executable(network main.c libCache.c libCache.h hashmap.h serverControl.c serverControl.h ISPquery.c ISPquery.h)
if (UNIX)
    target_link_libraries(network pthread)
endif ()